package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.pojo.SysUser;
import com.example.demo.util.ServiceException;

import java.util.List;

public interface UserService extends IService<SysUser> {
    
    SysUser login(String username, String password);

    boolean addUser(SysUser sysUser);

    SysUser getUserById(Long id) throws ServiceException;

    List<SysUser> getUserALl();

    void deleteUserById(Long id);

    void saveUser(SysUser sysUser);

    SysUser getUserByUserName(String username);


}
